package com.yedean.mybatisplus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum SexEnum {
    MALE(1,"男"),
    FEMALE(2,"女");

    @EnumValue
    private Integer sex;
    
    private String name;

    SexEnum(Integer sex, String name) {
        this.sex = sex;
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public String getName() {
        return name;
    }
}
